#pragma once

#include <QObject>
#include "RenderWidget.h"

class Controller : public QObject {
    Q_OBJECT

public:
    explicit Controller(RenderWidget* view, QObject* parent = nullptr);

public slots:

    void onAddVectors(float x1, float y1, float x2, float y2);
    void onTransformMatrix(float a11, float a12, float a21, float a22);

private:
    RenderWidget* m_view;  // 渲染控件
};
